﻿// <copyright file="MyCreateActivityRequest.cs" company="Microsoft Corporation">
// Copyright (c) 2009 Microsoft Corporation All Rights Reserved
// </copyright>
// <author>Michael S. Scherotter</author>
// <email>mischero@microsoft.com</email>
// <date>2009-04-17</date>
// <summary>Specialized CreateActivityRequest.</summary>

namespace Activities
{
    using System.Collections.Generic;
    using MyOpenSpace;

    /// <summary>
    /// Activity request with an adjective parameter
    /// </summary>
    /// <remarks>this template has a ${adjective} parameter in its body</remarks>
    public class MyCreateActivityRequest : CreateActivityRequest
    {
        /// <summary>
        /// Gets or sets the adjective
        /// </summary>
        public string Adjective { get; set; }

        /// <summary>
        /// Add the parameters for this activity request
        /// </summary>
        /// <param name="parameters">the parameters collection</param>
        public override void OnGetTemplateParameters(IDictionary<string, object> parameters)
        {
            parameters.Add("adjective", this.Adjective);
        }
    }
}
